const { uploadFile } = require('../class/uploadFile')
const { uploadForm } = require('../class/uploadForm')

function Router (path, req, res) {
  switch (path) {
    case '/uploadFile':
      new uploadFile(req, res)
      break
    case '/submit':
      new uploadForm(req, res)
      break
    default:
      console.log('404')
  }
}

module.exports = {
  Router
}
